#! /usr/bin/env python 
# Author: Diana Godfrey

PKG = 'languagememory'
import nounObj
import sys

class NounMemory():

	nouns = {}
	nounIndex = 0

	def __init__(self):
		self.data = []

	def introduce(self):
		print "\nHi, I'm Clarence."
		name = raw_input ("Whats your name?\n\n")
		print "Hello, %s."% name
		self.makeFriend(name)

	def makeFriend(self, name):
		newNoun = nounObj.NounObject(name)
		self.nouns[self.nounIndex] = newNoun.getName()
		self.nounIndex += 1
		print "\nSo far, my noun lexicon includes: "
		self.printNouns()

	def printNouns(self):
		for k in self.nouns:
			print self.nouns[k]

	def end(self):
		sys.exit("\nBye.")

if __name__ == '__main__':
	mem = NounMemory()
	count = 5
	while (count > 0):
		count = count - 1
	mem.end()
                                   
